package com.ctgu.fcftsystem.service;

import com.ctgu.fcftsystem.pojo.Sharesholder;
import com.ctgu.fcftsystem.pojo.Spend;

import java.util.List;


public interface SharesholderService {

    List<Sharesholder> findByPaging(int pageCount, int pageSize);

    /**
     * 添加持股记录
     * @param sharesholder
     * @return
     */
    int addSharesholderDao(Sharesholder sharesholder);

    /**
     * 根据股票名称、holder和证券用户等多重条件查询持股信息
     * @param sharesName
     * @param holder
     * @param securitiesId
     * @return
     */
    List<Sharesholder> searchSharesholder(String sharesName, String holder, Integer securitiesId);


    /**
     * 根据id删除持股信息
     * @param id
     * @return
     */
    int deleteSharesholderById(Integer id);


    /**
     * 根据id维护持股信息
     * @return
     */
    int updateSharesholderById(Sharesholder  sharesholder);
}
